<?php
/**
 * Created by PhpStorm.
 * User: mac
 * Date: 19/12/19
 * Time: 21:08
 */

namespace app\admin\controller;


use app\common\bean\ListMap;
use app\common\controller\AdminController;
use app\common\manage\UserVipManage;

class UserVip extends AdminController
{
    /** 用户vip查看
     * @return mixed
     * @throws \Exception
     */
    public function userVipList(){
        $listMap = new ListMap();
        $listMap->setData($this->getParams);
        $userVipMap = UserVipManage::getInstance()->getPaginatorList($listMap);
        $this->assign("userVipList",$userVipMap->getList());
        $this->assign("currentPage",$userVipMap->getCurrentPage());
        $this->assign("totalCount",$userVipMap->getTotalCount());
        return $this->fetch();
    }
}